﻿<%@ Page Title="" Language="VB" MasterPageFile="~/Master/Site.master" AutoEventWireup="false" CodeFile="ShowSiteLogs.aspx.vb" Inherits="admin_general_ShowSiteLogs" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" Runat="Server">

    <p>
        <asp:DropDownList ID="DropDownList1" runat="server" AutoPostBack="True">
            <asp:ListItem Value="0">Log In Activity</asp:ListItem>
            <asp:ListItem Value="1">Mails Sent Out</asp:ListItem>
            <asp:ListItem Value="2">Database Errors</asp:ListItem>
            <asp:ListItem Value="3">ContactUs Log</asp:ListItem>
        </asp:DropDownList>
        <asp:MultiView ID="MultiView1" runat="server">
            <asp:View ID="View1" runat="server">

                <asp:ObjectDataSource ID="LoggingLogODS" runat="server" 
                    OldValuesParameterFormatString="original_{0}" SelectMethod="GetData" 
                    TypeName="LogginsLogDSTableAdapters.LogginsLogTableAdapter">
                </asp:ObjectDataSource>
                <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
                    DataKeyNames="ID" DataSourceID="LoggingLogODS" AllowPaging="True" 
                    AllowSorting="True">
                    <Columns>
                        <asp:BoundField DataField="ID" HeaderText="ID" InsertVisible="False" 
                            ReadOnly="True" SortExpression="ID" />
                        <asp:BoundField DataField="Username" HeaderText="User Name" 
                            SortExpression="Username" />
                        <asp:BoundField DataField="Password" HeaderText="Password" 
                            SortExpression="Password" Visible="False" />
                        <asp:CheckBoxField DataField="Status" HeaderText="Status" 
                            SortExpression="Status" />
                        <asp:BoundField DataField="Times" HeaderText="Times" SortExpression="Times" />
                    </Columns>
                </asp:GridView>

            </asp:View>
            <asp:View ID="View2" runat="server">
                <asp:ObjectDataSource ID="EmailsLogODS" runat="server" 
                    OldValuesParameterFormatString="original_{0}" SelectMethod="GetData" 
                    TypeName="LogginsLogDSTableAdapters.usp_MembershipEmailsOutgoingLogSelectAllTableAdapter">
                </asp:ObjectDataSource>
                <asp:GridView ID="GridView2" runat="server" AutoGenerateColumns="False" 
                    DataKeyNames="Id" DataSourceID="EmailsLogODS" AllowPaging="True" 
                    AllowSorting="True">
                    <Columns>
                        <asp:BoundField DataField="Id" HeaderText="Id" InsertVisible="False" 
                            ReadOnly="True" SortExpression="Id" />
                        <asp:BoundField DataField="EmailSender" HeaderText="EmailSender" 
                            SortExpression="EmailSender" />
                        <asp:BoundField DataField="EmailReceiver" HeaderText="EmailReceiver" 
                            SortExpression="EmailReceiver" />
                        <asp:BoundField DataField="Emailsubject" HeaderText="Emailsubject" 
                            SortExpression="Emailsubject" />
                        <asp:BoundField DataField="EmailBody" HeaderText="EmailBody" 
                            SortExpression="EmailBody" />
                        <asp:BoundField DataField="EmailSendDate" HeaderText="EmailSendDate" 
                            SortExpression="EmailSendDate" />
                    </Columns>
                </asp:GridView>
            </asp:View>
            <asp:View ID="View3" runat="server">
                <asp:GridView ID="GridView3" runat="server" AllowPaging="True" 
                    AllowSorting="True" AutoGenerateColumns="False" DataKeyNames="Id" 
                    DataSourceID="dbErrorLogODS">
                    <Columns>
                        <asp:BoundField DataField="Id" HeaderText="Id" InsertVisible="False" 
                            ReadOnly="True" SortExpression="Id" />
                        <asp:BoundField DataField="ErrNumber" HeaderText="ErrNumber" 
                            SortExpression="ErrNumber" />
                        <asp:BoundField DataField="ErrText" HeaderText="ErrText" 
                            SortExpression="ErrText" />
                        <asp:BoundField DataField="ErrSource" HeaderText="ErrSource" 
                            SortExpression="ErrSource" />
                        <asp:BoundField DataField="AppSource" HeaderText="AppSource" 
                            SortExpression="AppSource" />
                        <asp:BoundField DataField="Operator" HeaderText="Operator" 
                            SortExpression="Operator" />
                        <asp:BoundField DataField="Status" HeaderText="Status" 
                            SortExpression="Status" />
                        <asp:BoundField DataField="Occurred" HeaderText="Occurred" 
                            SortExpression="Occurred" />
                    </Columns>
                </asp:GridView>
                <asp:ObjectDataSource ID="dbErrorLogODS" runat="server" 
                    OldValuesParameterFormatString="original_{0}" SelectMethod="GetData" 
                    TypeName="LogginsLogDSTableAdapters.usp_dbErrorLogSelectTableAdapter">
                </asp:ObjectDataSource>
            </asp:View>
            <asp:View ID="View4" runat="server">
                <asp:GridView ID="GridView4" runat="server" AllowPaging="True" 
                    AllowSorting="True" AutoGenerateColumns="False" DataKeyNames="Id" 
                    DataSourceID="ContactUsPageODS">
                    <Columns>
                        <asp:BoundField DataField="Id" HeaderText="Id" InsertVisible="False" 
                            ReadOnly="True" SortExpression="Id" />
                        <asp:BoundField DataField="MsgFrom" HeaderText="MsgFrom" 
                            SortExpression="MsgFrom" />
                        <asp:BoundField DataField="MsgReplyEmail" HeaderText="MsgReplyEmail" 
                            SortExpression="MsgReplyEmail" />
                        <asp:BoundField DataField="MsgReplyUserName" HeaderText="MsgReplyUserName" 
                            SortExpression="MsgReplyUserName" />
                        <asp:BoundField DataField="MsgSubject" HeaderText="MsgSubject" 
                            SortExpression="MsgSubject" />
                        <asp:BoundField DataField="MsgContent" HeaderText="MsgContent" 
                            SortExpression="MsgContent" />
                        <asp:BoundField DataField="MsgReply" HeaderText="MsgReply" 
                            SortExpression="MsgReply" />
                        <asp:BoundField DataField="MsgRcvdDate" HeaderText="MsgRcvdDate" 
                            SortExpression="MsgRcvdDate" />
                    </Columns>
                </asp:GridView>
                <asp:ObjectDataSource ID="ContactUsPageODS" runat="server" 
                    OldValuesParameterFormatString="original_{0}" SelectMethod="GetData" 
                    TypeName="LogginsLogDSTableAdapters.usp_ContactUsPageSelectAllTableAdapter"></asp:ObjectDataSource>
            </asp:View>
        </asp:MultiView>

    </p>
</asp:Content>

